﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Channels;

namespace WcfFlashRemoting.ServiceModel.Channels
{
    class AmfMessageEncoderFactory : MessageEncoderFactory
    {
        public AmfMessageEncoderFactory()
        {
            messageEncoder = new AmfMessageEncoder();
        }

        AmfMessageEncoder messageEncoder;
        public override MessageEncoder Encoder
        {
            get { return messageEncoder; }
        }

        public override MessageVersion MessageVersion
        {
            get { return messageEncoder.MessageVersion; }
        }

        public override MessageEncoder CreateSessionEncoder()
        {
            return base.CreateSessionEncoder();
        }
    }
}
